package com.xy.controller.approval;

import com.xy.api.model.request.approval.ApplyApprovalRequest;
import com.xy.api.model.request.approval.ApprovalInstanceRequest;
import com.xy.api.model.response.R;
import com.xy.controller.BaseController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/approval/instance")
public class ApprovalInstanceController extends BaseController {

    @PostMapping("/apply")
    public R apply(@RequestBody ApplyApprovalRequest request) {

        return success();
    }

    @PostMapping("/detail")
    public R detail(@RequestBody ApprovalInstanceRequest request) {

        return success();
    }

    @PostMapping("/quash")
    public R quash(@RequestBody ApprovalInstanceRequest request) {

        return success();
    }
}
